
public class test {
	public static void main(String [] args) throws InterruptedException{
	
		BinarySemaphore f = new BinarySemaphore(1);
		BinarySemaphore g = new BinarySemaphore(0);
		Semaphore h = new Semaphore(0);
		
	//	printF threadX=new printX(f,g,h);
	//	printG threadY=new printY(f,g);
	//	printH threadZ=new printZ(h);
	//	threadF.start();
	//	threadG.start();
	//	threadH.start();
		
	 	new theThreads("F",f,g,h);
		 new theThreads("G",f,g,h);
		 new theThreads("H",f,g,h);
			
		Thread.sleep(100);
		System.exit(0);
	}
}
